from appium.webdriver.common.appiumby import AppiumBy

from tests.api_demo.pages.api_page.api import Api


class AppPage(Api):
    __MENU = (AppiumBy.XPATH, '//*[@text="Menu"]')
    def find_Menu(self):
        ele = self.find(*self.__MENU).text
        return ele
